<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>error</title>
</head>

<body>
    <script src="../src/ajax.js"></script>
    <script>
        Ajax({
            method: 'get',
            url: '/error/get',
            error: function (e) {
                console.log(e)
            }
        })

        Ajax({
            method: 'get',
            url: '/error/timeout',
            timeout: 2000,
            error: function (e) {
                console.log(e.message)
                console.log(e.config)
                console.log(e.code)
                console.log(e.request)
            }
        })

    </script>
</body>

</html>